import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import GamePanel from '@/views/wuziq.vue'
import ChessGame from '@/views/chess.vue'


const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/wuziqi',
    name: 'wuziqi',
    component: GamePanel
  },
  {
    path: '/chess',
    name: 'chess',
    component: ChessGame
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router 